<?php
/**
 * Created by PhpStorm.
 * User: openoter
 * Date: 2018/12/11
 * Time: 21:24
 */

namespace app\admin\model;


use think\Model;

class EvaluationsLog extends Model {

    public function teacher() {
        return $this->belongsTo('Teacher', 'teacher_id');
//        return $this->hasOne('Teacher', '')
    }

    public function cadre(){
        return $this->belongsTo('Cadre', 'uid');
    }

    // TODO 有问题
    public function questions() {
        return $this->belongsTo('EvaluationsQuestion', 'qid');
//        return $this->('EvaluationsQuestion', 'qid');
    }
}